package com.mark;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletComponentScan;

/**
 * 启动类
 */
// 开启springboot，复合注解 @EnableAutoConfiguration @ComponentScan
@SpringBootApplication
// 扫描包 ，生成mapper代理对象
@MapperScan("com.mark.*.mapper")
//扫描加载权限的Listener
@ServletComponentScan(value = {"com/mark/basic/listener"})
public class PetHomeApplication {
    public static void main(String[] args) {
        SpringApplication.run(PetHomeApplication.class);
    }
}